<div id="resultSearch">
    <?php
    $this->searchForm->setAction(
            $this->url(array('controller' => 'search'),'search', true)
    );
    ?>

    <?php echo $this->searchForm ?>
</div>

<div>
    <div class="results">
        <?php foreach($this->paginator as $mod) {

            $modLink = array(
                    'controller' => 'mod',
                    'action'     => 'details',
                    'id'         => $mod['id'],
                    'name'       => $this->seoString($mod['name'])
            );
            ?>

            <div class="mod">
                <span class="name" id="<?php echo $mod['id'] ?>">
                    <a href="<?php echo $mod['url'] ?>">
                        <?php echo $mod['name'] ?>
                    </a>
                </span> - <span class="author"><?php echo $mod['author'] ?></span>

                <div class="sum">
                    <?php echo $this->trimDescription($mod['Locations'][0]['description']) ?>
                </div>
                <span class="url">
                        <?php echo $this->trimUrl($mod['url']) ?>
                </span>
                - <a href="<?php  echo $this->url($modLink, 'mod', true) ?>">
                    Details
                </a>

            </div>
        <?php } ?>




        <?php if ( $this->paginator->count() == 0 ): ?>
            <div class="ui-widget">
                <div class="ui-state-error ui-corner-all" style="padding: 0 .7em;">
                    <p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
                        No results found!</p>
                </div>
            </div>
        <?php endif; ?>


        <?php
        $this->paginator->setPageRange(5);
        echo $this->paginationControl($this->paginator,
                                      'Sliding',
                                      'pagination.phtml');
        ?>


    </div>

</div>
